package javazuoye4;

public class zuoye07 {
    public static void main(String[] args) {
        //十进制转二进制
        int a=64;
        toB(a);
    }
    public static void toB(int a){
        StringBuilder c=new StringBuilder();
        int e=0;
        while(a>0)
        {
           int b = a%2;
           c.insert(0,b);
           a=a/2;
        }
      System.out.println(c);
    }
}
